(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/shop/task" ], {
    2196: function(n, e, i) {
        i.d(e, "b", function() {
            return t;
        }), i.d(e, "c", function() {
            return a;
        }), i.d(e, "a", function() {});
        var t = function() {
            var e = this;
            e.$createElement;
            e._self._c, e._isMounted || (e.e0 = function(n) {
                e.userinfo.User_watch;
            }, e.e1 = function(n, e) {
                var i = arguments[arguments.length - 1].currentTarget.dataset;
                (i.eventParams || i["event-params"]).tdItem.is_receive_state;
            });
        }, a = [];
    },
    3082: function(n, e, i) {
        i.r(e);
        var t, a = i("2196"), o = i("fc1f");
        for (t in o) "default" !== t && function(n) {
            i.d(e, n, function() {
                return o[n];
            });
        }(t);
        i("3d0c");
        var s = i("f0c5"), a = Object(s.a)(o.default, a.b, a.c, !1, null, null, null, !1, a.a, void 0);
        e.default = a.exports;
    },
    "3d0c": function(n, e, i) {
        var t = i("798e");
        i.n(t).a;
    },
    7586: function(n, e, i) {
        (function(n) {
            function e(n) {
                return n && n.__esModule ? n : {
                    default: n
                };
            }
            i("0cda"), e(i("66fd")), n(e(i("3082")).default);
        }).call(this, i("543d").createPage);
    },
    "798e": function(n, e, i) {},
    fc1f: function(n, e, i) {
        i.r(e);
        var t, a = i("fc45"), o = i.n(a);
        for (t in a) "default" !== t && function(n) {
            i.d(e, n, function() {
                return a[n];
            });
        }(t);
        e.default = o.a;
    },
    fc45: function(e, o, s) {
        (function(u) {
            Object.defineProperty(o, "__esModule", {
                value: !0
            }), o.default = void 0;
            var e, t = (e = s("a34a")) && e.__esModule ? e : {
                default: e
            };
            function g(n, e, i, t, a, o, s) {
                try {
                    var r = n[o](s), g = r.value;
                } catch (n) {
                    return i(n), 0;
                }
                r.done ? e(g) : Promise.resolve(g).then(t, a);
            }
            function a(r) {
                return function() {
                    var n = this, s = arguments;
                    return new Promise(function(e, i) {
                        var t = r.apply(n, s);
                        function a(n) {
                            g(t, e, i, a, o, "next", n);
                        }
                        function o(n) {
                            g(t, e, i, a, o, "throw", n);
                        }
                        a(void 0);
                    });
                };
            }
            var r = getApp(), i = {
                data: function() {
                    return {
                        module_name: r.globalData.module_name,
                        showAlert_login: !1,
                        userinfo: u.getStorageSync("userinfo"),
                        setting: u.getStorageSync("setting"),
                        wxCode: "",
                        systemtype: "",
                        switch1Checked: !1,
                        userImg: "",
                        progress1: "60/100",
                        progress2: "60/100",
                        isSignin: !1,
                        signinList: [ {
                            signinId: 1,
                            signinCoin: "",
                            signinDay: 1,
                            signinedType: !1,
                            signiningType: !0,
                            signinFuture: !0,
                            lookAd: !1
                        }, {
                            signinId: 2,
                            signinCoin: "",
                            signinDay: 2,
                            signinedType: !1,
                            signiningType: !0,
                            signinFuture: !0,
                            lookAd: !1
                        }, {
                            signinId: 3,
                            signinCoin: "",
                            signinDay: 3,
                            signinedType: !1,
                            signiningType: !0,
                            signinFuture: !0,
                            lookAd: !1
                        }, {
                            signinId: 4,
                            signinCoin: "",
                            signinDay: 4,
                            signinedType: !1,
                            signiningType: !0,
                            signinFuture: !0,
                            lookAd: !1
                        }, {
                            signinId: 5,
                            signinCoin: "",
                            signinDay: 5,
                            signinedType: !1,
                            signiningType: !0,
                            signinFuture: !0,
                            lookAd: !1
                        }, {
                            signinId: 6,
                            signinCoin: "",
                            signinDay: 6,
                            signinedType: !1,
                            signiningType: !0,
                            signinFuture: !0,
                            lookAd: !1
                        }, {
                            signinId: 7,
                            signinCoin: "",
                            signinDay: 7,
                            signinedType: !1,
                            signiningType: !0,
                            signinFuture: !0,
                            lookAd: !1
                        } ],
                        continuity: 0,
                        taskList: [],
                        donetaskList: [],
                        videoO: "",
                        notice: "",
                        recording: "",
                        lookAd: "",
                        pageKey: "",
                        height: 1334,
                        tabBar: [],
                        sharetitle: "",
                        sharepic: ""
                    };
                },
                components: {
                    gracePage: function() {
                        s.e("graceUI/components/gracePage").then(function() {
                            return resolve(s("1021"));
                        }.bind(null, s)).catch(s.oe);
                    },
                    graceDialog: function() {
                        s.e("graceUI/components/graceDialog").then(function() {
                            return resolve(s("f85d"));
                        }.bind(null, s)).catch(s.oe);
                    },
                    graceSingleSlider: function() {
                        s.e("graceUI/components/graceSingleSlider").then(function() {
                            return resolve(s("0093"));
                        }.bind(null, s)).catch(s.oe);
                    }
                },
                props: {},
                onReady: function() {},
                onPullDownRefresh: function() {
                    this.getsignin();
                },
                onLoad: function(n) {
                    var i = this;
                    return a(t.default.mark(function n() {
                        var e;
                        return t.default.wrap(function(n) {
                            for (;;) switch (n.prev = n.next) {
                              case 0:
                                return n.next = 2, i.$onLaunched;

                              case 2:
                                (e = i).setting = u.getStorageSync("setting"), e.tabBar = u.getStorageSync("tabbar"), 
                                e.userinfo = u.getStorageSync("userinfo"), u.hideLoading(), i.module_name = r.globalData.module_name, 
                                i.loadtasks(), i.loaddonetasks(), e.getsignin();

                              case 13:
                              case "end":
                                return n.stop();
                            }
                        }, n);
                    }))();
                },
                onShow: function() {
                    var i = this;
                    return a(t.default.mark(function n() {
                        var a, o, s, e;
                        return t.default.wrap(function(n) {
                            for (;;) switch (n.prev = n.next) {
                              case 0:
                                return n.next = 2, i.$onLaunched;

                              case 2:
                                a = i, o = new Date(new Date().toLocaleDateString()).getTime(), s = new Date(new Date().toLocaleDateString()).getTime() + 864e5 - 1, 
                                e = r.globalData.util.url("entry/wxapp/userinfonew", {
                                    m: r.globalData.module_name
                                }), u.request({
                                    url: e,
                                    method: "GET",
                                    data: {
                                        openid: u.getStorageSync("openid")
                                    },
                                    success: function(n) {
                                        var e = n.data.data;
                                        if (e.openid) {
                                            u.setStorageSync("userinfo", e), a.userinfo = e, a.continuity = +e.sign_in_continuity;
                                            var i = 0;
                                            1 == e.sign_in_continuity ? ((n = a.signinList.map(function(n) {
                                                return n.signinedType = !1, n.signiningType = !0, n.signinFuture = !0, n;
                                            }))[0] = {
                                                signinId: a.signinList[0].signinId,
                                                signinCoin: a.signinList[0].signinCoin,
                                                signinDay: a.signinList[0].signinDay,
                                                signinedType: !0,
                                                signiningType: !1,
                                                signinFuture: !1,
                                                lookAd: a.signinList[0].lookAd
                                            }, a.signinList = n) : 7 == e.sign_in_continuity && (i = 1);
                                            for (var t = 0; t <= a.signinList.length - i; t++) t <= +e.sign_in_continuity ? (console.log(t), 
                                            a.signinList[t].signinedType = !0, a.signinList[t].signiningType = !1, a.signinList[t].signinFuture = !1) : t > +e.sign_in_continuity && (a.signinList[t - 1].signinedType = !1, 
                                            a.signinList[t - 1].signiningType = !0, a.signinList[t - 1].signinFuture = !0);
                                            e.sign_in && o < 1e3 * e.sign_in && s > 1e3 * e.sign_in && (a.signinList[+e.sign_in_continuity - i].lookAd = !0, 
                                            a.isSignin = !0, a.signinList = a.signinList);
                                        }
                                    }
                                }), u.hideLoading();

                              case 6:
                              case "end":
                                return n.stop();
                            }
                        }, n);
                    }))();
                },
                onShareAppMessage: function() {
                    var n = "pages/shop/task?uid=" + u.getStorageSync("userinfo").user_id;
                    return {
                        title: this.sharetitle,
                        imageUrl: this.sharepic,
                        path: n
                    };
                },
                onHide: function() {},
                onUnload: function() {},
                onReachBottom: function() {},
                methods: {
                    getUserProfile: function() {
                        var i = this;
                        wx.getUserProfile({
                            desc: "请完善会员资料",
                            success: function(n) {
                                console.log(n.userInfo);
                                var e = r.globalData.util.url("entry/wxapp/userinfo2", {
                                    m: r.globalData.module_name
                                }), n = {
                                    avatarUrl: n.userInfo.avatarUrl,
                                    nickName: n.userInfo.nickName,
                                    openid: u.getStorageSync("openid")
                                };
                                u.request({
                                    url: e,
                                    method: "POST",
                                    header: {
                                        "content-type": "application/x-www-form-urlencoded"
                                    },
                                    data: n,
                                    success: function(n) {
                                        1 == n.data.status && (u.setStorageSync("userinfo", n.data.data.userinfo), i.userinfo = n.data.data.userinfo, 
                                        i.closeDialog2(), u.showToast({
                                            title: "登录成功",
                                            icon: "none"
                                        }));
                                    }
                                });
                            }
                        });
                    },
                    showDialog2: function() {
                        this.$refs.showAlert_login.open();
                    },
                    closeDialog2: function() {
                        this.$refs.showAlert_login.hide();
                    },
                    change: function(n) {
                        console.log(this.tabBar.list), console.log(this.tabBar.list[n]);
                        var e = this.tabBar.list[n];
                        if (this.pageKey = n, u.setStorageSync("pageKey", n), 1 == e.adtype) {
                            if (1 == e.appid_type && u.getStorageSync("mtwm_url")) return void u.navigateToMiniProgram({
                                appId: "wxde8ac0a21135c07d",
                                path: u.getStorageSync("mtwm_url")
                            });
                            if (1 == e.appid_type && !u.getStorageSync("mtwm_url")) return this.appid_type = 1, 
                            void this.meituan_urlFun();
                            if (2 == e.appid_type && u.getStorageSync("mtsc_url")) return void u.navigateToMiniProgram({
                                appId: "wxde8ac0a21135c07d",
                                path: u.getStorageSync("mtsc_url")
                            });
                            if (0 == e.appid_type) return void u.navigateToMiniProgram({
                                appId: e.appid,
                                path: e.path
                            });
                        }
                        if (5 != e.adtype) {
                            if (4 == e.adtype) {
                                u.setStorageSync("index_nav", e.url);
                                var i = getCurrentPages();
                                i.reverse();
                                for (var t = e.url.replace("../", ""), a = 0; a < i.length; a++) if (-1 != i[a].route.indexOf(t)) return void u.navigateBack({
                                    delta: a
                                });
                                return -1 != e.url.indexOf("../index/") || -1 != e.url.indexOf("../user/") || -1 != e.url.indexOf("../meituan/") || -1 != e.url.indexOf("../meituangroup/") || -1 != e.url.indexOf("../elm/") || -1 != e.url.indexOf("../eat/") ? (t = e.url.replace("../", "../../../pages/"), 
                                void u.redirectTo({
                                    url: t
                                })) : -1 == e.url.indexOf("../../../pages/index/") && -1 == e.url.indexOf("../../../pages/user/") && -1 == e.url.indexOf("../../../pages/meituan/") && -1 == e.url.indexOf("../../../pages/elm/") && -1 == e.url.indexOf("../../../pages/eat/") ? -1 != e.url.indexOf("../../pagesA/pages/movie/") || -1 != e.url.indexOf("../../pagesA/pages/shop/") ? (t = e.url.replace("../../pagesA/pages/", "../"), 
                                void u.navigateTo({
                                    url: t
                                })) : (-1 != e.url.indexOf("../movie/") || e.url.indexOf("../shop/"), void u.navigateTo({
                                    url: e.url
                                })) : void u.redirectTo({
                                    url: e.url
                                });
                            }
                        } else u.navigateTo({
                            url: "../kefu/webview?return_url=" + encodeURIComponent(e.url)
                        });
                    },
                    fatherHeight: function(n) {
                        this.height = n;
                    },
                    opentask: function(n) {
                        0 < n.currentTarget.dataset.page_id ? u.navigateTo({
                            url: "../../pagesA/pages/movieA/page?page_id=" + n.currentTarget.dataset.page_id
                        }) : n.currentTarget.dataset.url && u.navigateTo({
                            url: "../kefu/webview?return_url=" + encodeURIComponent(n.currentTarget.dataset.url)
                        });
                    },
                    opendonetask: function(n) {
                        0 < n.currentTarget.dataset.page_id ? u.navigateTo({
                            url: "../../pagesA/pages/movieA/page?page_id=" + n.currentTarget.dataset.page_id
                        }) : n.currentTarget.dataset.url && u.navigateTo({
                            url: "../kefu/webview?return_url=" + encodeURIComponent(n.currentTarget.dataset.url)
                        });
                    },
                    regetsignin: function() {
                        var a = this, o = new Date(new Date().toLocaleDateString()).getTime(), s = new Date(new Date().toLocaleDateString()).getTime() + 864e5 - 1, n = r.globalData.util.url("entry/wxapp/userinfonew", {
                            m: r.globalData.module_name
                        });
                        u.request({
                            url: n,
                            method: "GET",
                            data: {
                                openid: u.getStorageSync("openid")
                            },
                            success: function(n) {
                                var e = n.data.data;
                                if (e.openid) {
                                    u.setStorageSync("userinfo", e), a.userinfo = e, a.continuity = +e.sign_in_continuity;
                                    var i = 0;
                                    1 == e.sign_in_continuity ? ((n = a.signinList.map(function(n) {
                                        var e = n;
                                        return console.log(n), e.signinedType = !1, e.signiningType = !0, e.signinFuture = !0, 
                                        e;
                                    }))[0] = {
                                        signinId: a.signinList[0].signinId,
                                        signinCoin: a.signinList[0].signinCoin,
                                        signinDay: a.signinList[0].signinDay,
                                        signinedType: !0,
                                        signiningType: !1,
                                        signinFuture: !1,
                                        lookAd: a.signinList[0].lookAd
                                    }, a.signinList = n, console.log(n)) : 7 == e.sign_in_continuity && (i = 1);
                                    for (var t = 0; t <= a.signinList.length - i; t++) t <= +e.sign_in_continuity ? (a.signinList[t].signinedType = !0, 
                                    a.signinList[t].signiningType = !1, a.signinList[t].signinFuture = !1) : t > +e.sign_in_continuity && (a.signinList[t - 1].signinedType = !1, 
                                    a.signinList[t - 1].signiningType = !0, a.signinList[t - 1].signinFuture = !0);
                                    console.log(+e.sign_in_continuity), console.log(i), console.log(+e.sign_in_continuity - i), 
                                    e.sign_in && o < 1e3 * e.sign_in && s > 1e3 * e.sign_in && (a.signinList[+e.sign_in_continuity - i].lookAd = !0, 
                                    a.isSignin = !0, a.signinList = a.signinList);
                                }
                            }
                        });
                    },
                    getsignin: function() {
                        var e = this, n = r.globalData.util.url("entry/wxapp/api", {
                            m: r.globalData.module_name,
                            o: "getsignin"
                        });
                        u.request({
                            url: n,
                            method: "GET",
                            data: {
                                openid: u.getStorageSync("openid")
                            },
                            success: function(n) {
                                n.status = 0, console.log(n);
                                n = n.data.data;
                                e.signinList[0].signinCoin = n.signin_one_day, e.signinList[1].signinCoin = n.signin_two_day, 
                                e.signinList[2].signinCoin = n.signin_three_day, e.signinList[3].signinCoin = n.signin_four_day, 
                                e.signinList[4].signinCoin = n.signin_five_day, e.signinList[5].signinCoin = n.signin_six_day, 
                                e.signinList[6].signinCoin = n.signin_seven_day, e.signinList = e.signinList, e.regetsignin();
                            }
                        });
                    },
                    getWxCode: function() {
                        var e = this;
                        wx.login({
                            success: function(n) {
                                e.wxCode = n.code;
                            }
                        });
                    },
                    login: function(e) {
                        var i = this;
                        this.closeDialog2(), u.getSetting({
                            success: function(n) {
                                n.authSetting["scope.userInfo"] ? u.getUserInfo({
                                    success: function(n) {
                                        i.userAuth(e, n.userInfo, "login");
                                    }
                                }) : i.userAuth(e, null, "login");
                            }
                        });
                    },
                    userAuth: function(i, n, t) {
                        var a = this;
                        "getUserInfo:ok" == i.detail.errMsg ? wx.login({
                            success: function(n) {
                                var e = r.globalData.util.url("entry/wxapp/api", {
                                    m: r.globalData.module_name,
                                    o: "userinfo"
                                }), n = {
                                    code: n.code,
                                    encryptedData: i.detail.encryptedData,
                                    iv: i.detail.iv,
                                    openid: u.getStorageSync("openid"),
                                    invite_uid: wx.getStorageSync("invite_uid")
                                };
                                u.request({
                                    url: e,
                                    method: "POST",
                                    header: {
                                        "content-type": "application/x-www-form-urlencoded"
                                    },
                                    data: n,
                                    success: function(n) {
                                        1 == n.data.status ? (n = r.globalData.crypt.Decrypt(n.data.data.data, n.data.data.key), 
                                        n = JSON.parse(n), u.setStorageSync("userinfo", n.userinfo), a.userinfo = n.userinfo, 
                                        "login" == t && (a.closeDialog2(), u.showToast({
                                            title: "登录成功",
                                            icon: "none"
                                        }))) : u.showToast({
                                            title: "您取消了请求",
                                            icon: "none"
                                        });
                                    }
                                });
                            }
                        }) : u.showToast({
                            title: "获取用户信息失败",
                            icon: "none"
                        });
                    },
                    tasklq: function(n) {
                        var e = r.globalData.util.url("entry/wxapp/api", {
                            m: r.globalData.module_name,
                            o: "tasklq"
                        });
                        u.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: u.getStorageSync("openid"),
                                taskid: n.currentTarget.dataset.taskid
                            },
                            success: function(n) {
                                n = r.globalData.crypt.Decrypt(n.data.data.data, n.data.data.key);
                                1 == JSON.parse(n).status ? u.showToast({
                                    title: "领取成功",
                                    icon: "none"
                                }) : u.showToast({
                                    title: "领取失败",
                                    icon: "none"
                                });
                            }
                        });
                    },
                    showDialog1: function() {
                        this.$refs.showAlert_taobaoauth.open();
                    },
                    closeDialog1: function() {
                        this.$refs.showAlert_taobaoauth.hide();
                    },
                    showDialog3: function() {
                        this.$refs.showAlert.open();
                    },
                    closeDialog3: function() {
                        this.$refs.showAlert.hide();
                    },
                    userlogin: function() {
                        !u.getStorageSync("userinfo").nickname && 1 == u.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : this.closeDialog2();
                    },
                    loadsetting: function() {
                        var e = this, n = r.globalData.util.url("entry/wxapp/api", {
                            m: r.globalData.module_name,
                            o: "setting"
                        });
                        u.request({
                            url: n,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: u.getStorageSync("openid")
                            },
                            success: function(n) {
                                n = r.globalData.crypt.Decrypt(n.data.data.data, n.data.data.key), n = JSON.parse(n);
                                u.setStorageSync("setting", n.setting), e.setting = u.getStorageSync("setting"), 
                                u.setNavigationBarColor({
                                    backgroundColor: "#ff5756",
                                    frontColor: "white"
                                }), u.stopPullDownRefresh();
                            }
                        });
                    },
                    loadtasks: function() {
                        var i = this, n = r.globalData.util.url("entry/wxapp/tasklist2", {
                            m: r.globalData.module_name
                        });
                        u.request({
                            url: n,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: u.getStorageSync("openid")
                            },
                            success: function(n) {
                                var e = r.globalData.crypt.Decrypt(n.data.data.data, n.data.data.key), e = JSON.parse(e);
                                console.log(e), i.taskList = e.data.tasklist, i.sharetitle = n.data.sharetitle, 
                                i.sharepic = n.data.sharepic;
                            }
                        });
                    },
                    loaddonetasks: function() {
                        var e = this, n = r.globalData.util.url("entry/wxapp/api", {
                            m: r.globalData.module_name,
                            o: "donetasklist"
                        });
                        u.request({
                            url: n,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: u.getStorageSync("openid")
                            },
                            success: function(n) {
                                n = r.globalData.crypt.Decrypt(n.data.data.data, n.data.data.key), n = JSON.parse(n);
                                console.log(n), e.donetaskList = n.data.donetasklist;
                            }
                        });
                    },
                    coinDouble: function(n) {
                        for (var e = this, i = "", t = e.signinList.filter(function(n) {
                            return 1 == n.signinedType;
                        }), a = 0; a < t.length; a++) i = t[a];
                        var o = null;
                        u.createRewardedVideoAd && ((o = u.createRewardedVideoAd({
                            adUnitId: u.getStorageSync("setting").ad_jili_id
                        })).onLoad(function(n) {}), o.onError(function(n) {}), o.onClose(function(n) {
                            n && n.isEnded && (u.request({
                                url: r.globalData.util.url("entry/wxapp/api", {
                                    m: r.globalData.module_name,
                                    o: "adDoublecredit"
                                }),
                                method: "GET",
                                data: {
                                    openid: u.getStorageSync("openid"),
                                    goold: i.signinCoin
                                },
                                success: function(n) {
                                    console.log(n), 1 == n.status && (e.lookAd = !0);
                                }
                            }), e.getsignin());
                        })), o && o.show().catch(function() {
                            o.load().then(function() {
                                return o.show();
                            }).catch(function(n) {});
                        });
                    },
                    coinCenterFun: function() {
                        var e = this;
                        u.request({
                            url: n.globalData.data.api + "do=IndexRewrite&action=UserDailyTasks&token=" + e.token,
                            method: "get",
                            header: {
                                "content-type": "application/json"
                            },
                            success: function(n) {
                                e.setData({
                                    taskList: n.info
                                });
                            }
                        });
                    },
                    bindGoTask: function() {
                        u.navigateTo({
                            url: "/pages/index/index"
                        });
                    },
                    bindChooseHb: function(e) {
                        var i = this, t = e.currentTarget.dataset.index;
                        i.setData({
                            hbIndex: t
                        }), u.request({
                            url: n.globalData.data.api + "do=IndexRewrite&action=MinusGoldPay&token=" + i.token + "&task_id=" + i.hongbaoList[t].id,
                            header: {
                                "content-type": "application/json"
                            },
                            success: function(n) {
                                i.userInfo.gold < i.hongbaoList[t].minus_gold ? i.setData({
                                    dhhbWindow: !0
                                }) : (i.userInfoFun(), i.hongbaoListFun(), u.setStorageSync("onlyIndex", i.hongbaoList[t].only), 
                                i.hongbaoList[t].task_frequency == i.hongbaoList[t].task_count ? u.showToast({
                                    title: "已领取"
                                }) : i.setData({
                                    dhhbWindow: !0
                                }));
                            }
                        });
                    },
                    bindClose: function() {
                        this.setData({
                            dhhbWindow: !1
                        });
                    },
                    hongbaoListFun: function() {
                        var i = this;
                        u.request({
                            url: n.globalData.data.api + "do=IndexRewrite&action=TaskRedPacket&token=" + i.token,
                            header: {
                                "content-type": "application/json"
                            },
                            success: function(n) {
                                var e = n.info.map(function(n) {
                                    return n.hongbaoHide = !1, n.hongbaoHand = !1, n;
                                });
                                e[0].hongbaoHide = !0, e[0].hongbaoHand = !0, i.setData({
                                    hongbaoList: n.info
                                });
                            }
                        });
                    },
                    closeAlert: function() {
                        this.closeDialog2();
                    },
                    userSignin: function() {
                        u.getStorageSync("userinfo").nickname || 1 != u.getStorageSync("setting").login_type || !wx.getUserProfile ? this.isSignin ? 1 == this.userinfo.User_watch || 1 == this.setting.ad_is_everyday_video && this.coinDouble() : this.bindSignin() : this.showDialog2();
                    },
                    bindSignin: function() {
                        var e = this, n = (new Date(new Date().toLocaleDateString()).getTime(), new Date(new Date().toLocaleDateString()).getTime(), 
                        e.notice, e.signinList.filter(function(n) {
                            return 1 == n.signinedType;
                        }));
                        n.length, n.length, u.getStorageSync("setting").warn_qiandao_tplid ? wx.requestSubscribeMessage({
                            tmplIds: [ u.getStorageSync("setting").warn_qiandao_tplid ],
                            success: function(n) {
                                "requestSubscribeMessage:ok" == n.errMsg && (n = r.globalData.util.url("entry/wxapp/subscribemessage_sign", {
                                    m: r.globalData.module_name
                                }), u.request({
                                    url: n,
                                    method: "POST",
                                    header: {
                                        "content-type": "application/x-www-form-urlencoded"
                                    },
                                    data: {
                                        openid: u.getStorageSync("openid")
                                    },
                                    success: function(n) {}
                                })), e.moban();
                            },
                            fail: function(n) {
                                e.moban();
                            }
                        }) : e.moban();
                    },
                    moban: function() {
                        var i = this, t = new Date(new Date().toLocaleDateString()).getTime(), a = new Date(new Date().toLocaleDateString()).getTime() + 864e5 - 1, n = i.signinList.filter(function(n) {
                            return 1 == n.signinedType;
                        }), o = n.length <= 6 ? n.length : n.length - 1, n = r.globalData.util.url("entry/wxapp/api", {
                            m: r.globalData.module_name,
                            o: "getsignin"
                        });
                        u.request({
                            url: n,
                            method: "GET",
                            data: {
                                openid: u.getStorageSync("openid"),
                                goold: i.signinList[o].signinCoin
                            },
                            success: function(n) {
                                var e = n, n = r.globalData.util.url("entry/wxapp/userinfonew", {
                                    m: r.globalData.module_name
                                });
                                u.request({
                                    url: n,
                                    method: "GET",
                                    data: {
                                        openid: u.getStorageSync("openid")
                                    },
                                    success: function(n) {
                                        n = n.data.data;
                                        n.openid && (u.setStorageSync("userinfo", n), i.userinfo = n, i.regetsignin(), i.userinfo.sign_in && t < 1e3 * i.userinfo.sign_in && a > 1e3 * i.userinfo.sign_in && (i.signinList[o].lookAd = !0, 
                                        i.isSignin = !0, i.signinList = i.signinList), u.showToast({
                                            title: e.data.msg,
                                            icon: "none"
                                        }));
                                    }
                                });
                            }
                        });
                    },
                    prizeGoodsDetail: function(n) {
                        n = n.currentTarget.dataset.index, n = this.prizeGoodsList[n].id;
                        u.navigateTo({
                            url: "/pages/prizedetails/prizedetails?goodsid=" + n
                        });
                    },
                    bindTaskThree: function(r) {
                        var g = this;
                        u.chooseAddress && u.chooseAddress({
                            success: function(e) {
                                var i, t, a, o, s;
                                "chooseAddress:ok" === e.errMsg && (i = e.userName, t = e.telNumber, a = e.detailInfo, 
                                o = e.provinceName, s = e.cityName, e = e.countyName, u.request({
                                    url: n.globalData.data.api + "do=IndexRewrite&action=IncludeAddressUser&token=" + g.token + "&name=" + i + "&phone=" + t + "&address=" + (o + s + e + a) + "&task_id=" + r,
                                    method: "get",
                                    header: {
                                        "content-type": "application/json"
                                    },
                                    success: function(n) {
                                        g.coinCenterFun();
                                    }
                                }));
                            },
                            fail: function(n) {
                                "chooseAddress:fail auth deny" === n.errMsg && u.openSetting({
                                    success: function(n) {}
                                });
                            }
                        });
                    },
                    bindGoWelfare: function(n) {
                        n = n.currentTarget.dataset.index;
                        1 == this.taskList.WelfareTask[n].only ? u.navigateTo({
                            url: "/pages/Luckygift/Luckygift"
                        }) : 2 == this.taskList.WelfareTask[n].only && this.bindTaskThree(this.taskList.WelfareTask[n].id);
                    },
                    bindGoDaily: function(n) {
                        var e = this, n = n.currentTarget.dataset.index;
                        3 == e.taskList.DailyTasks[n].only || (4 == e.taskList.DailyTasks[n].only ? (u.switchTab({
                            url: "/pages/index/index"
                        }), u.setStorageSync("onlyIndex", e.taskList.DailyTasks[n].only)) : 5 == e.taskList.DailyTasks[n].only && u.navigateTo({
                            url: "/pages/Luckyfortreasure/Luckyfortreasure?only=" + e.taskList.DailyTasks[n].only
                        }));
                    },
                    bindWelfare: function(e) {
                        var i = this, e = e.currentTarget.dataset.index;
                        u.request({
                            url: n.globalData.data.api + "do=IndexRewrite&action=IncreaseGoldCoins&token=" + i.token + "&task_id=" + i.taskList.WelfareTask[e].id,
                            method: "get",
                            header: {
                                "content-type": "application/json"
                            },
                            success: function(n) {
                                u.showToast({
                                    title: n.info,
                                    icon: "none"
                                }), i.onLoad();
                            }
                        });
                    },
                    bindDaily: function(e) {
                        var i = this, e = e.currentTarget.dataset.index;
                        u.request({
                            url: n.globalData.data.api + "do=IndexRewrite&action=IncreaseGoldCoins&token=" + i.token + "&task_id=" + i.taskList.DailyTasks[e].id,
                            method: "get",
                            header: {
                                "content-type": "application/json"
                            },
                            success: function(n) {
                                u.showToast({
                                    title: n.info,
                                    icon: "none"
                                }), i.onLoad();
                            }
                        });
                    }
                }
            };
            o.default = i;
        }).call(this, s("543d").default);
    }
}, [ [ "7586", "common/runtime", "common/vendor" ] ] ]);